<template name="basics">
	<view>
		<scroll-view scroll-y class="page">
			<image src="https://skv4.oss-cn-hangzhou.aliyuncs.com/cityCard/sapp/top-img.png"
			 mode="widthFix" class="response"></image>
			<view class="nav-list">
				<navigator hover-class="none" :url="item.path" class="nav-li" navigateTo :class="'bg-'+item.color" :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]"
				 v-for="(item,index) in elements" :key="index">
					<view class="nav-title">{{item.title}}</view>
					<view class="nav-name">{{item.name}}</view>
					<text :class="'cuIcon-' + item.cuIcon"></text>
				</navigator>
			</view>
			<view class="cu-tabbar-height"></view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name: "basics",
		data() {
			return {
				elements: [{
						title: '扫描市民卡',
						name: 'QrIdcard',
						path: '/pages/views/bussiness/qrcode/qrcode',
						color: 'cyan',
						cuIcon: 'newsfill'
					},
					{
						title: '消票列表',
						name: 'TicketList',
						path: '/pages/views/bussiness/qrocde-list/qrocde-list',
						color: 'blue',
						cuIcon: 'ticket'
					},
					{
						title: '验证优惠',
						name: 'CheckCoupon',
						color: 'brown',
						path:'/pages/views/bussiness/qr-coupon/qr-coupon',
						cuIcon: 'scan'
					},
					{
						title: '优惠列表',
						name: 'CouponList',
						path:'/pages/views/bussiness/qr-coupon-list/qr-coupon-list',
						color: 'grey',
						cuIcon: 'list'
					}
				],
			};
		},
		onShow() {
			console.log("success")
		}
	}
</script>

<style>
	.page {
		height: 100vh;
	}
</style>
